#!/usr/bin/env node

let msg ='hello, 苏子怡';

//string -> unicode
let utf8 = Buffer.from(msg,'utf8');
let utf16 = Buffer.from(msg,'utf16le');

console.log(utf8);
console.log(utf16);

//decoding 译码
console.log(utf8.toString('utf8'));
console.log(utf16.toString('utf16le'));

